#ifndef __DIRSCANNER_HPP__
#define __DIRSCANNER_HPP__

#include <string>
#include <vector>

#include <iostream>
#include <sys/types.h>
#include <dirent.h>
#include <string.h>
#include <stdio.h>

using std::string;
using std::vector;

using std::cout;
using std::endl;

class DirScanner
{
public:
    DirScanner();
    ~DirScanner();
    vector<string> &getFiles();
    void traverse(const string &dirName);

    void operator()(const string &dirName)
    {
        traverse(dirName);
    }

private:
    vector<string> _files;
};

#endif